package com.zbhk.qc.controller;

import com.zbhk.qc.dto.BaseResponseEntity;
import com.zbhk.qc.dto.VdAdClickVO;
import com.zbhk.qc.entity.VdAdClickDetail;
import com.zbhk.qc.service.VdAdClickDetailService;
import com.zbhk.qc.service.VdAdClickService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@Slf4j
@RestController("VdAdClickDetailController")
@RequestMapping(value = "/vdAdClickDetail")
@RequiredArgsConstructor
@Api(tags = "广告点击详情表")
public class VdAdClickDetailController {

    @Autowired
    private VdAdClickDetailService vdAdClickDetailService;

    @ApiOperation(value = "提交广告点击次数", notes = "", produces = "application/json")
    @PostMapping("/addClickNun")
    public BaseResponseEntity addClickNun(String uuid, HttpServletRequest request) {
        return vdAdClickDetailService.addClickNun(uuid);
    }

}
